﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindFrmTx
{
    public partial class Form5 : Form
    {
        public Form5()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var titl = textBox1.Text;
            var auth = textBox2.Text;
            var creadTime = textBox3.Text;
            var id = textBox4.Text;
            var insql = string.Format("update Articles set Title'{0}',Author = '{1}',CreatedTime='{2}',where Id ='{3}'", titl, auth, creadTime,id);
            var ins = DbHelp.dataTable(insql);
            Form5 form5 = new Form5();
            this.Close();
            Form2 form2 = new Form2();
            form2.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Form5 form5 = new Form5();
            this.Close();
            Form2 form2 = new Form2();
            form2.Show();
        }
    }
}
